import { handleRequest } from './index';

// 获取-红黄牌公示列表
export function getCardNoticeList(data) {
    return handleRequest({
        url: '/red-yellow-card/publicity/list',
        method: 'post',
        data
    })
}

// 查看-红黄牌公示详情
export function getCardNoticeDetail(query) {
    return handleRequest({
        url: '/red-yellow-card/publicity',
        method: 'get',
        params: query
    })
}

// 新增-红黄牌公示
export function addCardNotice(data, config) {
    return handleRequest({
        url: '/red-yellow-card/publicity',
        method: 'post',
        data,
    }, config)
}

// 删除-红黄牌公示
export function deleteCardNotice(query) {
    return handleRequest({
        url: '/red-yellow-card/publicity/del',
        method: 'post',
        params: query
    })
}

// 修改-红黄牌公示
export function updateSystemManage(data) {
    return handleRequest({
        url: '/red-yellow-card/publicity/update',
        method: 'post',
        data
    })
}
// 安全制度管理列表统计
export function GetCount(data) {
  return handleRequest({
    url: '/red-yellow-card/publicity/count',
    method: 'post',
    data
  })
}
